import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import index from '@/components/index'
import shuisi from '@/components/shuisi'
import zhongxin from '@/components/zhongxin'
// const routineMonitoring = () => import('@/components/detectionprocess/taskmanage/routineMonitoring.vue');//例行监测
// const entrustmentMonitoring = () => import('@/components/detectionprocess/taskmanage/entrustmentMonitoring.vue');//委托监测

Vue.use(Router)

export default new Router({
//mode: 'history',
// base: '/laboratory/experiment/',
  routes: [
    {
      path:'/zhongxin',
      name:'zhognxin',
      component:zhongxin
    },
    {
      path:'/shuisi',
      name:'shuisi',
      component:shuisi,
      // children: [
      //   {
      //     path: 'routineMonitoring',
      //     component: routineMonitoring
      //   },
      //   {
      //     path: 'entrustmentMonitoring',
      //     component: entrustmentMonitoring
      //   }
      // ]
    },
    {
      path:'/',
      meta: {
        title: '登录'
      },
      component: resolve => require(['@/components/login'], resolve)
    },
    {
      path:'/selectDep',
      meta: {
        title: '选择实验室'
      },
      component: resolve => require(['@/components/selectDep'], resolve)
    },
    {
      path:'/cas',
      meta: {
        title: '选择实验室'
      },
      component: resolve => require(['@/components/cas'], resolve)
    },
    {
      path:'/reportScreen',
      meta: {
        title: '选择实验室'
      },
      component: resolve => require(['@/components/reportScreen'], resolve)
    },
    
  ]
})
